package com.xiejr.api.dto.user;

import com.xiejr.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("管理员表数据传输对象")
public class AdminDTO extends BaseEntity.BaseDTO {
    private static final long serialVersionUID = 827620007420702393L;
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @NotNull(message = "主键不得为空")
    private Long id;


    /**
     * 账号
     */
    @ApiModelProperty(value = "账号")
    @NotEmpty(message = "账号不得为空")
    private String adminName;


    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    @NotEmpty(message = "密码不得为空")
    private String adminPwd;


    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    @NotEmpty(message = "状态不得为空")
    private String adminStatus;


    /**
     * 角色
     */
    @ApiModelProperty(value = "角色")
    @NotEmpty(message = "角色不得为空")
    private String adminRole;


    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @NotNull(message = "创建时间不得为空")
    private LocalDateTime createTime;


    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @NotNull(message = "更新时间不得为空")
    private LocalDateTime updateTime;


}